/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import javax.persistence.Entity;
/**
 *
 * @author woutermkievit
 */

@Entity
@Table(name = "classroom")
public class Classroom implements Serializable {
    @Column(name = "isReady")
    private boolean isReady=false;
    
//    @OneToOne(cascade = CascadeType.ALL)
//    private GivenAnswer givenAnswer = new GivenAnswer();
    @Id
    @OneToOne(fetch = FetchType.LAZY)
    private Course Cource;

    public Classroom() {
    }

    public Classroom(Course Cource) {
        this.Cource = Cource;
    }

    public Course getCource() {
        return Cource;
    }

    public void setCource(Course Cource) {
        this.Cource = Cource;
    }

    public boolean isIsReady() {
        return isReady;
    }

    public void setIsReady(boolean isReady) {
        this.isReady = isReady;
    }
    
    
}
